package com.aspose.cells;

import java.util.ArrayList;
import java.util.HashMap;

class zga {
   private float k;
   private boolean l = true;
   private boolean m = false;
   private boolean n;
   boolean a = false;
   private Style o;
   HashMap b;
   private Border p;
   private Border q;
   public Border c;
   public Border d;
   private int r;
   private boolean s;
   private int t;
   private Cell u;
   private int v;
   private int w;
   private int x;
   private int y;
   private int z;
   private boolean A;
   private zfu B;
   private Hyperlink C;
   private String D = null;
   String e = "";
   private ArrayList E;
   private int F;
   int f = 1;
   private int G = -1;
   private int H = -1;
   boolean g = false;
   boolean h = false;
   Style i = null;
   boolean j = true;

   public void a(boolean var1) {
      this.l = var1;
   }

   public float a() {
      return this.k;
   }

   public void a(float var1) {
      this.k = var1;
   }

   boolean b() {
      return this.m;
   }

   void b(boolean var1) {
      this.m = var1;
   }

   void c(boolean var1) {
      this.n = var1;
   }

   public Style c() {
      return this.o;
   }

   public void a(Style var1) {
      this.o = var1;
   }

   public void a(Border var1) {
      this.p = var1;
   }

   public void b(Border var1) {
      this.q = var1;
   }

   boolean d() {
      if (this.c() != null && this.c().d() != null) {
         BorderCollection var1 = this.c().getBorders();
         return var1.getByBorderType(1).getLineStyle() != 0 || var1.getByBorderType(4).getLineStyle() != 0 || var1.getByBorderType(2).getLineStyle() != 0 || var1.getByBorderType(8).getLineStyle() != 0;
      } else {
         return false;
      }
   }

   public int e() {
      return this.r;
   }

   public void a(int var1) {
      this.r = var1;
   }

   public boolean f() {
      return this.s;
   }

   public void d(boolean var1) {
      this.s = var1;
   }

   public int g() {
      return this.t;
   }

   public void b(int var1) {
      this.t = var1;
   }

   public Cell h() {
      return this.u;
   }

   public void a(Cell var1) {
      this.u = var1;
   }

   public int i() {
      return this.v;
   }

   public void c(int var1) {
      this.v = var1;
   }

   public int j() {
      return this.w;
   }

   public int k() {
      return this.x;
   }

   public int l() {
      return this.y;
   }

   public void d(int var1) {
      this.y = var1;
      this.H = -1;
   }

   public int m() {
      return this.z;
   }

   public void e(int var1) {
      this.z = var1;
      this.G = -1;
   }

   public boolean n() {
      return this.A;
   }

   public void e(boolean var1) {
      this.A = var1;
   }

   public zfu o() {
      return this.B;
   }

   public void a(zfu var1) {
      this.B = var1;
   }

   public Hyperlink p() {
      return this.C;
   }

   public void a(Hyperlink var1) {
      this.C = var1;
   }

   void a(String var1) {
      this.D = var1;
   }

   zga(int var1, int var2) {
      this.w = var1;
      this.x = var2;
      this.y = 1;
      this.z = 1;
      this.r = -1;
   }

   zga() {
      this.y = 1;
      this.z = 1;
      this.r = -1;
   }

   boolean q() {
      return this.h() != null && this.h().c.c != 0;
   }

   ArrayList r() {
      return this.E;
   }

   void a(ArrayList var1) {
      this.E = var1;
   }

   int s() {
      return this.F;
   }

   void f(int var1) {
      this.F = var1;
   }

   double a(Worksheet var1, int var2, int var3, int var4) {
      RowCollection var5 = var1.getCells().getRows();
      double var6 = 0.0D;

      for(int var8 = var2; var8 < var2 + var4; ++var8) {
         zakq.a(var8);
         if (var8 > var3) {
            return var6;
         }

         var6 += var1.getCells().getRowHeight(var8);
      }

      return var6;
   }

   int b(Worksheet var1, int var2, int var3, int var4) {
      RowCollection var5 = var1.getCells().getRows();
      int var6 = 0;
      boolean var7 = false;

      for(int var8 = var2; var8 < var2 + var4; ++var8) {
         zakq.a(var8);
         int var9 = var1.getCells().getRowHeightPixel(var8);
         if (var8 > var3) {
            return var6;
         }

         var6 += var9;
      }

      return var6;
   }

   private int a(zagg var1) {
      if (this.G > -1) {
         return this.G;
      } else {
         this.G = 0;
         int var2 = this.k();
         if (this.f < 0) {
            var2 = this.k() - (this.m() - 1);
            if (var2 < 0) {
               var2 = 0;
            }
         }

         if (this.f > 0) {
            this.G += var1.b(var2, Math.min(this.k() + this.m() - 1, 16383));
         } else {
            this.G += var1.b(var2, Math.min(this.k(), 16383));
         }

         return this.G;
      }
   }

   private int a(zahs var1) {
      if (this.H > -1) {
         return this.H;
      } else {
         this.H = 0;
         this.H += var1.a(this.j(), this.j() + this.l() - 1);
         return this.H;
      }
   }

   int a(Cells var1, Style var2) throws Exception {
      int var3 = this.c().getRotationAngle();
      boolean var4 = false;
      int var5;
      if (var3 != 90 && var3 != -90 && var3 != 255) {
         var5 = this.a(var1.c);
         var5 -= (int)zatm.a(this.o.getIndentLevel(), var2.getFont(), 1.0D);
      } else {
         var5 = this.a(var1.getRows().b);
      }

      return var5;
   }

   boolean t() {
      return this.g;
   }

   void f(boolean var1) {
      this.g = var1;
   }

   boolean u() {
      return this.h;
   }

   void g(boolean var1) {
      this.h = var1;
   }
}
